package com.binhthuan.catechist.server.domain;

import javax.persistence.MappedSuperclass;

import com.binhthuan.catechist.server.util.JsonConverter;

@MappedSuperclass
public abstract class AbstractObject {

    /**
     * Get json string which represent for this object.
     * @return JSON string.
     */
    public String toJson() {
        return JsonConverter.getInstance().toJson(this);
    }
}
